{% load staticfiles %}

<div class="right-col">
    <div class="widget">
        <h3><b>渣浪微博</b></h3>
       <iframe width="100%" height="200" class="share_self"  frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=200&fansRow=2&ptype=1&speed=0&skin=1&isTitle=0&noborder=0&isWeibo=0&isFans=1&uid=2527655160&verifier=0cb325a7&dpc=1"></iframe>
</div>

<div class="right-col">
    <div class="commnet">
        <h3><b>评论</b></h3>
        <!-- 多说最新评论 start -->
	    <ul class="ds-recent-comments necomment" data-num-items="5" data-show-avatars="1" data-show-time="1" data-show-title="1" data-show-admin="1" data-excerpt-length="70"></ul>
            <!-- 多说最新评论 end -->
            <!-- 多说公共JS代码 start (一个网页只需插入一次) -->
            <script type="text/javascript">
            var duoshuoQuery = {short_name:"butuiis"};
                (function() {
                    var ds = document.createElement('script');
                    ds.type = 'text/javascript';ds.async = true;
                    ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
                    ds.charset = 'UTF-8';
                    (document.getElementsByTagName('head')[0]
                     || document.getElementsByTagName('body')[0]).appendChild(ds);
                })();
                </script>
            <!-- 多说公共JS代码 end -->
    </div>
</div>

<div class="right-col">
    <div class="widget" id="tag_cloud">
        <h3><b >标签云</b></h3>
        <!--width: 286px; height: 286px;margin-left:-20px;-->
        <label id="example"> </label>
    </div>
</div>

<div class="right-col">
    <div class="widget">
        <h3><b>文章归档</b></h3>
        <ul>
            {% if date_list %}
                {% for x,y in date_list %}
                    <li><a href="{% url 'archive_month' year=x.year month=x.month %}">{{ x.year }}年 {{ x.month }}月（{{ y }}）</a></li>
                {% endfor %}
            {% endif %}
        </ul>
    </div>
</div>
<!--浮动图片-->
<div class="r">
    <div id="float">
        <a href="#" target="_blank"><img src="{% static "blog/img/ad.jpg" %}" width="100%" height="250" /></a>
    </div>
    <script type="text/javascript" src="{% static "blog/js/a.js" %}"></script>
</div>
<!--js 实现标签云-->
<script type="text/javascript">
    /*!
    * create an array of word objects,each representing a word in the cloud
     */
    // var list= [["java",8],["Android",0],["数据库",0],["算法",0]];
    var list = {{ tagCloud|safe }};
    var word_array  = new Array();
    for (i in list)
    {
        var temp = list[i][0];
        word_array.push({text:list[i][0],weight:list[i][1],link:"/articleTag/"+temp});
    }

    $(function(){
        $("#example").jQCloud(word_array)
    })
</script>